.class Ldgb/n$a;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Ldgb/n;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Ldgb/n;


# direct methods
.method constructor <init>(Ldgb/n;)V
    .locals 0

    .line 1
    iput-object p1, p0, Ldgb/n$a;->a:Ldgb/n;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 6

    .line 1
    sget-boolean v0, Ldgb/z;->b:Z

    const-string v1, "stat.EventDispatcher"

    if-eqz v0, :cond_0

    const-string v0, "Enter in HandleEventQueue!"

    .line 2
    invoke-static {v1, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 3
    :cond_0
    iget-object v0, p0, Ldgb/n$a;->a:Ldgb/n;

    invoke-static {v0}, Ldgb/n;->a(Ldgb/n;)Ljava/util/Queue;

    move-result-object v0

    .line 4
    iget-object v2, p0, Ldgb/n$a;->a:Ldgb/n;

    new-instance v3, Ljava/util/LinkedList;

    invoke-direct {v3}, Ljava/util/LinkedList;-><init>()V

    invoke-static {v2, v3}, Ldgb/n;->a(Ldgb/n;Ljava/util/Queue;)Ljava/util/Queue;

    .line 5
    :cond_1
    :goto_0
    invoke-interface {v0}, Ljava/util/Queue;->isEmpty()Z

    move-result v2

    if-nez v2, :cond_3

    .line 6
    invoke-interface {v0}, Ljava/util/Queue;->poll()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ldgb/k;

    .line 7
    invoke-virtual {v2}, Ldgb/k;->j()I

    move-result v3

    .line 8
    iget-object v4, p0, Ldgb/n$a;->a:Ldgb/n;

    invoke-static {v4, v2}, Ldgb/n;->a(Ldgb/n;Ldgb/k;)Z

    move-result v4

    if-nez v4, :cond_1

    const/4 v4, 0x3

    if-ge v3, v4, :cond_1

    .line 9
    sget-boolean v4, Ldgb/z;->c:Z

    if-eqz v4, :cond_2

    .line 10
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const-string v5, "Retry to handle Event "

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ldgb/k;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v5, " count:"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v1, v4}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    :cond_2
    add-int/lit8 v3, v3, 0x1

    .line 11
    invoke-virtual {v2, v3}, Ldgb/k;->a(I)V

    .line 12
    iget-object v3, p0, Ldgb/n$a;->a:Ldgb/n;

    invoke-static {v3}, Ldgb/n;->a(Ldgb/n;)Ljava/util/Queue;

    move-result-object v3

    invoke-interface {v3, v2}, Ljava/util/Queue;->add(Ljava/lang/Object;)Z

    goto :goto_0

    :cond_3
    return-void
.end method
